AddToFront Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Adds an item to the front of the Deque. The indices of all existing items in the Deque are increased by 1. This method is equivalent to Insert(0, item) but is a little more efficient.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public void AddToFront(
	T item
)
Visual Basic (Declaration)
Public Sub AddToFront ( _
	item As T _
)
Visual C++
public:
void AddToFront (
	T item
)

Parameters

item
T
The item to add.

Remarks

Adding an item to the front of the Deque takes a small constant amount of time, regardless of how many items are in the Deque.

See Also